<?php
$httpHost = strtolower($_SERVER["HTTP_HOST"]); 
if($httpHost=="localhost" || $httpHost=="192.168.11.3"){
	define("MYSQL_ADDRESS","127.0.0.1");
	define("MYSQL_USERNAME","root");
	define("MYSQL_PASSWORD","");
	define("MYSQL_DBNAME","wjci");
}
else if($httpHost == "wjc-dev.ritcey.com"){
	define("MYSQL_ADDRESS","mysql.ritcey.com");
	define("MYSQL_USERNAME","wjci");
	define("MYSQL_PASSWORD","wjci123");
	define("MYSQL_DBNAME","wjci");
}

function isParamSet($key){
	if(isset($_GET[$key]))
		return true;
	if(isset($_POST[$key]))
		return true;
	return false;
}
function getParamVal($key){
	if(isset($_GET[$key]))
		return $_GET[$key];
	if(isset($_POST[$key]))
		return $_POST[$key];
	return null;
}
?>
